/* Shoplook 商城模板基础样式 */

/* 页面包装器 */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部头部栏 */
.topheader {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 8px 0;
  font-size: 13px;
}

.currency-picker, .language-dropdown {
  display: inline-block;
  margin-right: 15px;
  position: relative;
}

.phone-no {
  margin: 0;
  color: #666;
}

.phone-no i {
  margin-right: 5px;
}

.default-msg {
  margin: 0;
  font-weight: 500;
  color: #28a745;
}

.myaccount-links .customer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.myaccount-links .customer-links li {
  display: inline-block;
  margin-left: 15px;
}

.myaccount-links .customer-links a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
}

.myaccount-links .customer-links a:hover {
  color: #007bff;
}

/* 主头部 */
.header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-search {
  max-width: 600px;
  margin: 0 auto;
}

.header-search .form {
  position: relative;
}

.searchField {
  display: flex;
  border: 2px solid #007bff;
  border-radius: 30px;
  overflow: hidden;
}

.search-category select {
  border: none;
  padding: 12px 15px;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.header-search input[type="text"] {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
}

.header-search input[type="text"]:focus {
  outline: none;
}

.header-search .action {
  background: #007bff;
  border: none;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
}

.header-search .action:hover {
  background: #0056b3;
}

/* 页面头部横幅 */
.page-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 面包屑导航 */
.breadcrumbs-wrapper {
  margin-top: 20px;
}

.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  user-select: none;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 4px;
  border-radius: 3px;
}

.breadcrumb-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 兼容旧版本 */
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 4px;
  border-radius: 3px;
}

.breadcrumbs a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumbs .an {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn--small {
  padding: 8px 20px;
  font-size: 12px;
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.required {
  color: #dc3545;
}

/* 警告框 */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
}

.card-header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

/* 响应式工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 响应式断点 */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 2rem;
  }
  
  .header-search {
    max-width: 100%;
    margin: 10px;
  }
  
  .searchField {
    border-radius: 5px;
  }
}
